package com.tulele.vtool.mapper;

import com.tulele.vtool.model.AdvertInfo;
import com.tulele.vtool.model.AdvertTagInfo;
import com.tulele.vtool.model.ArticleAdvertInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component(value = "advertInfoMapper")
public interface AdvertInfoMapper {

    void addAdvertByUserId(AdvertInfo advertInfo);

    List<AdvertInfo> selectAdvertByUserIdAndAdvertType(AdvertInfo advertInfo);

    void deleteAdvertByAdvertId(@Param("id")Integer advertId);

    void updateAdvertByAdvertId(AdvertInfo advertInfo);

    List<AdvertTagInfo> selectAdvertTagByTagTypeAndTagId(AdvertTagInfo advertTagInfo);


    void addAdvertTag(AdvertTagInfo advertTagInfo);

    void deleteAdvertTagByTagId(Integer id);

    List<AdvertInfo> selectAdvertByLikeAdvert(AdvertInfo advertInfo);

    void addVideoAdvert(ArticleAdvertInfo articleAdvertInfo);

    void delVideoAdvert(ArticleAdvertInfo articleAdvertInfo);

    ArticleAdvertInfo selectVideoAdvert(ArticleAdvertInfo articleAdvertInfo);

    AdvertInfo selectAdvertByAdvertId(AdvertInfo advertInfo);
}
